package com.example.hyw.szysteam.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.hyw.szysteam.R;
import com.qmuiteam.qmui.widget.QMUITopBar;

/**
 * Created by HYW on 2018/5/24.
 */

public class TestActivity extends AppCompatActivity {
    QMUITopBar mTopBar;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        initTopBar();
    }

    private void initTopBar(){
        mTopBar=findViewById(R.id.topbar);
        mTopBar.setTitle("作业").setTextColor(getResources().getColor(R.color.myWhite));
        mTopBar.addLeftImageButton(R.drawable.ic_left,R.id.left).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
